package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseVo;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 金蝶-即时库存，出入库实时更新对象 erp_king_real_inventory_info
 * @author wutao
 * @date 2024-07-24
 */
@TableName ("erp_king_real_inventory_info")
@ApiModel (value = "erp_king_real_inventory_info对象", description = "金蝶-即时库存，出入库实时更新")
@Data
public class KingRealInventoryEntity extends BaseVo {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 物料编码
     */
    @ApiModelProperty ("物料编码")
    @TableField ("material_code")
    @Excel (name = "物料编码")
    private String materialCode;

    /**
     * 仓库编码
     */
    @ApiModelProperty ("仓库编码")
    @TableField ("warehouse_code")
    @Excel (name = "仓库编码")
    private String warehouseCode;

    /**
     * 仓位
     */
    @ApiModelProperty ("仓位")
    @TableField ("warehouse_position")
    @Excel (name = "仓位")
    private String warehousePosition;

    /**
     * 库存数量,出入库后及时更新该字段
     */
    @ApiModelProperty ("库存数量/账存数量,出入库后及时更新该字段")
    @TableField ("inventory_num")
    @Excel (name = "库存数量,出入库后及时更新该字段")
    private String inventoryNum;

    /**
     * Bom版本
     */
    @ApiModelProperty ("Bom版本")
    @TableField ("bom_version")
    @Excel (name = "Bom版本")
    private String bomVersion;

    @ApiModelProperty ("创建人")
    @TableField ("create_by")
    private String createBy;

    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新人")
    @TableField ("update_by")
    private String updateBy;

    @ApiModelProperty ("Bom版本")
    @TableField ("update_time")
    @Excel (name = "Bom版本")
    private Date updateTime;

    /**
     * 是否可用
     */
    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    @Excel (name = "是否可用")
    private Integer isUsed;

    @ApiModelProperty ("物料名称")
    @TableField (exist = false)
    private String materialName;

    @ApiModelProperty ("规格型号")
    @TableField (exist = false)
    private String model;

    @ApiModelProperty ("品牌")
    @TableField (exist = false)
    private String brand;

    @ApiModelProperty ("仓库名称")
    @TableField (exist = false)
    private String wareName;

    @ApiModelProperty ("计量单位名称")
    @TableField (exist = false)
    private String meteringUnitName;

    @ApiModelProperty ("盘点数量，文本输入")
    @TableField (exist = false)
    private String checkNum;

    @ApiModelProperty ("盘盈数量，盘点数量-库存数量大于0时使用该字段")
    @TableField (exist = false)
    private String profitNum;

    @ApiModelProperty ("盘亏数量，库存数量-盘点数量大于0时使用该字段")
    @TableField (exist = false)
    private String lossNum;

    @ApiModelProperty ("参考进价")
    @TableField (exist = false)
    private String purchasePrice;

    @ApiModelProperty ("单价")
    @TableField (exist = false)
    private String price;

    @ApiModelProperty ("目标金额，录入")
    @TableField (exist = false)
    private String targetAmount;

    @ApiModelProperty ("合计金额，录入")
    @TableField (exist = false)
    private String totalAmount;

    @ApiModelProperty ("批价")
    @TableField (exist = false)
    private String rating;

    @ApiModelProperty ("指导价")
    @TableField (exist = false)
    private String guidePrice;

}
